import 'package:flutter/material.dart';

class Settings extends StatefulWidget {
  @override
  SettingsState createState() {
    return SettingsState();
  }
}

class SettingsState extends State<Settings> {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: <Widget>[
        Padding(
          padding: EdgeInsets.fromLTRB(10, 20, 10, 20),
          child: ListTile(
            leading: CircleAvatar(
              backgroundImage: NetworkImage(
                  "http://article.fd.zol-img.com.cn/t_s640x2000/g2/M00/07/05/Cg-4WVUrYziIChgdAAC0iNQWfiEAABdYAIvGm8AALSg681.jpg"),
            ),
            title: Text("Linux"),
            subtitle: Text("GNU is Not Unix"),
          ),
        ),
        RaisedButton(
          onPressed: () {
            Navigator.pushNamed(context, "/personalCenter", arguments: {
              "id": 123,
              "name": "interesting",
            });
          },
          color: Colors.white70,
          elevation: 0,
          child: Container(
            height: 50,
            child: Row(
              children: <Widget>[
                Icon(Icons.account_circle),
                SizedBox(width: 10),
                Text("个人中心"),
                Expanded(
                  flex: 1,
                  child: Container(
                    child: Icon(Icons.arrow_forward_ios),
                    alignment: Alignment.centerRight,
                  ),
                ),
              ],
            ),
          ),
        ),
        SizedBox(height: 2),
        RaisedButton(
          onPressed: () {},
          color: Colors.white70,
          elevation: 0,
          child: Container(
            height: 50,
            child: Row(
              children: <Widget>[
                Icon(Icons.monetization_on),
                SizedBox(width: 10),
                Text("我的钱包"),
                Expanded(
                  flex: 1,
                  child: Container(
                    child: Icon(Icons.arrow_forward_ios),
                    alignment: Alignment.centerRight,
                  ),
                ),
              ],
            ),
          ),
        ),
        SizedBox(height: 2),
        RaisedButton(
          onPressed: () {},
          color: Colors.white70,
          elevation: 0,
          child: Container(
            height: 50,
            child: Row(
              children: <Widget>[
                Icon(Icons.collections),
                SizedBox(width: 10),
                Text("我的收藏"),
                Expanded(
                  flex: 1,
                  child: Container(
                    child: Icon(Icons.arrow_forward_ios),
                    alignment: Alignment.centerRight,
                  ),
                ),
              ],
            ),
          ),
        ),
        SizedBox(height: 2),
        RaisedButton(
          onPressed: () {},
          color: Colors.white70,
          elevation: 0,
          child: Container(
            height: 50,
            child: Row(
              children: <Widget>[
                Icon(Icons.photo_album),
                SizedBox(width: 10),
                Text("我的相册"),
                Expanded(
                  flex: 1,
                  child: Container(
                    child: Icon(Icons.arrow_forward_ios),
                    alignment: Alignment.centerRight,
                  ),
                ),
              ],
            ),
          ),
        ),
        SizedBox(height: 2),
        RaisedButton(
          onPressed: () {
            Navigator.pushNamed(context, "/registerFirst");
          },
          color: Colors.white70,
          elevation: 0,
          child: Container(
            height: 50,
            child: Row(
              children: <Widget>[
                Icon(Icons.folder_shared),
                SizedBox(width: 10),
                Text("注册用户"),
                Expanded(
                  flex: 1,
                  child: Container(
                    child: Icon(Icons.arrow_forward_ios),
                    alignment: Alignment.centerRight,
                  ),
                ),
              ],
            ),
          ),
        ),
        SizedBox(height: 2),
        RaisedButton(
          onPressed: () {},
          color: Colors.white70,
          elevation: 0,
          child: Container(
            height: 50,
            child: Row(
              children: <Widget>[
                Icon(Icons.exit_to_app),
                SizedBox(width: 10),
                Text("退出"),
                Expanded(
                  flex: 1,
                  child: Container(
                    child: Icon(Icons.arrow_forward_ios),
                    alignment: Alignment.centerRight,
                  ),
                ),
              ],
            ),
          ),
        ),
      ],
    );
  }
}
